<?
/**
 * 管理评论模版
 * $Id: manage_comment.php 202 2010-11-15 12:36:01Z bwanglei@gmail.com $
 */?>
<div id="main"><table width="100%">
	<tr style="font-weight:bold;"><td>ID</td><td>昵称</td><td>电子邮件</td><td>链接</td><td>内容</td><td>帖子ID</td><td>时间</td><td>删除</td></tr>
	<?php
	foreach ($comments as $comment) {
		?>
		<tr><td><?php echo $comment['id'];?></td>
		<td><?php echo $comment['nickname'];?></td>
		<td><?php echo $comment['email'];?></td>
		<td><?php echo $comment['url'];?></td>
		<td><?php echo $comment['content'];?></td>
		<td><?php echo $comment['aid'];?></td>
		<td><?php echo date('Y-n-j G:i', $comment['time_date']+3600*$timezone);?></td>
		<td><form action="<?php echo $blogUrl;?>/admin/manage_comment.php?<?php echo rebuild_query_string(array('action'=>'del'));?>" method="post">
			<input type="hidden" name="id_comment" value="<?php echo $comment['id'];?>" />
			<input onclick="return confirm('确定要删除此评论吗？');" type="submit" value="删除" />
		</form></td></tr>
		<?php
	}?>
</table>
<!-- 页面导航-->
<div id="pagenavi">
<?php
if ($pre_bookmark) {
	$b = array('b'=>$pre_bookmark);
	?>
	<div id="pre_page"><a class="sided" href="<?php echo $blogUrl;?>/admin/manage_comment.php?<?php echo rebuild_query_string($b);?>">上一页</a></div>
	<?php
}

if ($next_bookmark) {
	$b = array('b'=>$next_bookmark);
	?>
	<div id="next_page"><a class="sided" href="<?php echo $blogUrl;?>/admin/manage_comment.php?<?php echo rebuild_query_string($b);?>">下一页</a></div>
	<?php
}?>
</div></div>
